package com.flx.at.spring.code.test.testbeanprocessor.component;


import org.springframework.beans.factory.InitializingBean;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 19:18
 * @Description:
 */
public class ProcessA implements InitializingBean {

    public ProcessA(){
        System.out.println("ProcessA construct...");
    }

    public void init(){
        System.out.println("ProcessA init...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("ProcessA afterPropertiesSet");
    }

    @PostConstruct
    public void initPost(){
        System.out.println("ProcessA PostConstruct...");
    }

    @PreDestroy
    public void destroyPre(){
        System.out.println("ProcessA PreDestroy...");
    }

}
